import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p002 from './p002';

export default async function a003(fd: IFeidaoAiBrowserComponent) {
	// todo  计划分类
	const n = fd.data.node.querySelector<HTMLSelectElement>('[data-id="plan"]');
	const v = n.value;
	console.log(v);
	const res = await nodejs<Array<{}>>('plan-cb/zj-000002/s002', {
		plan_cla_attr_no: v
	});
	console.log(res);
	render(fd, res, p002, 'p002', 'inner');
}
